package cn.hdu.liang.core.service.user;

import java.util.List;

import cn.itcast.common.page.Pagination;
import cn.hdu.liang.core.bean.user.Buyer;
import cn.hdu.liang.core.query.user.BuyerQuery;

public interface BuyerService {

    public Integer addBuyer(Buyer buyer);

    public Buyer getBuyerByKey(String id);

    public List<Buyer> getBuyersByKeys(List<String> idList);

    public Integer deleteByKey(String id);

    public Integer deleteByKeys(List<String> idList);

    public Integer updateBuyerByKey(Buyer buyer);

    public Pagination getBuyerListWithPage(BuyerQuery buyerQuery);

    public List<Buyer> getBuyerList(BuyerQuery buyerQuery);
}
